package com.zxn.kotlin.method

import com.zxn.kotlin.method.Factory.Companion.onParseIntent2


/**
 * 测试工厂类中的静态高阶函数.
 */
class FactoryTest {

}

fun main() {

    val intent = "980928062"

    Factory.onIntent(intent, ::onParseIntent)

    Factory.onIntent(intent) {
        println("FactoryTest:$it")
    }

    Factory.onIntent2(intent, ::onParseIntent2)

    Factory.onIntent2(intent) { userId1, userId2 ->
        println("FactoryTest,userId1:$userId1,userId2:$userId2")
    }

    val onIntent = Factory.onIntent(intent)
    println("FactoryTest,onIntent:$onIntent")

    val onIntent1 = Factory.onIntent
    println("FactoryTest,onIntent:$onIntent1")

}